PV-to-HVM: Implement compatibility nonseekable_open as a nop on
authorIan Campbell <ian.campbell@xensource.com>
Wed, 25 Oct 2006 12:58:30 +0000 (13:58 +0100)
committerIan Campbell <ian.campbell@xensource.com>
Wed, 25 Oct 2006 12:58:30 +0000 (13:58 +0100)
kernels before 2.6.9

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h

index cccdabf258f1acc628984c1fbe7eb8afe3058ec9..191777a8ffdef4b5ee8313ab8adb438f25beec58 100644 (file)
@@ -25,4 +25,8 @@
 #define NET_IP_ALIGN 0
 #endif
 
+#if defined(_LINUX_FS_H) && LINUX_VERSION_CODE < KERNEL_VERSION(2,6,9)
+#define nonseekable_open(inode, filp) /* Nothing to do */
+#endif
+
 #endif